* {
  margin: 0;
  padding: 0;
}
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#search_btn:checked + .search-btn {
  display: none;
}
#search_btn:checked ~ .close-btn {
  display: block;
}
#search_btn:checked ~ .container {
  clip-path: circle(100%);
}
#search_btn:checked ~ .container .search-box {
  width: 500px;
}
.search-btn {
  z-index: 1;
}
.search-btn i {
  color: #2442da;
  font-size: 22px;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: none;
}
.close-btn i {
  color: #2442da;
  font-size: 22px;
}
.container {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  clip-path: circle(40px at 50% 50%);
  background: linear-gradient(200deg, #6e86ee, #453c90);
  transition: 0.5s;
}
.container .search-box {
  width: 0;
  height: 50px;
  transition: 0.5s;
  overflow: hidden;
  border-bottom: 3px solid #fff;
}
.container .search-box input {
  width: 93%;
  height: 50px;
  outline: none;
  border: none;
  background: none;
  color: #fff;
  font-size: 22px;
  text-indent: 8px;
}
.container .search-box input::placeholder {
  color: #fff;
}
.container .search-box i {
  color: #2442da;
  font-size: 22px;
}
